object Foo {

def foo() {

    //ERROR: match
    if (x == 1) {
        return 2
    }
}
}


